home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group96a.txt / 000028_icon-group-sender _Wed Jan 24 10:20:36 1996.msg < prev    next >
Internet Message Format  |  1996-09-05  |  1KB

  1. Received: by cheltenham.cs.arizona.edu; Thu, 25 Jan 1996 16:24:24 MST
  2. To: icon-group@cs.arizona.edu
  3. Date: 24 Jan 1996 10:20:36 -0700
  4. From: gmt@cs.arizona.edu (Gregg Townsend)
  5. Message-Id: <4e5pp4$qlf@hawk.CS.Arizona.EDU>
  6. Organization: University of Arizona CS Department, Tucson AZ
  7. Sender: icon-group-request@cs.arizona.edu
  8. References: <4e1038$fng@news.ccit.arizona.edu>
  9. Subject: Re: Line continuation in $define ?
  10. Errors-To: icon-group-errors@cs.arizona.edu
  11. Status: O
  12.  
  13. Chris De Young <CHD@AZCC.ARIZONA.EDU> wrote:
  14. > How do you (or can you) continue a line in a $define macro?
  15.  
  16. There's no way to do it directly, but you can do something like this:
  17.  
  18. $define part1 "..........................................................."
  19. $define part2 "..........................................................."
  20. $define part3 "..........................................................."
  21. $define part4 "..........................................................."
  22. $define part5 "..........................................................."
  23. $define longstring (part1 || part2 || part3 || part4 || part5)
  24.  
  25. The concatenation takes place at execution time, so you won't want to use
  26. it inside a tight loop, but other than that it should be fine.
  27.  
  28.    Gregg Townsend / gmt@CS.Arizona.EDU / +1 520 621 4325 / 32 13 45N 110 57 16W
  29.    Computer Science / Univ of Arizona / 1040 E 4th St / Tucson AZ 85721-0077
  30.